time.Time.Add (method)
67 uses
time (current package)
sleep.go#L187: case c.(chan Time) <- Now().Add(Duration(-delta)):
time.go#L1166: func (t Time) Add(d Duration) Time {
time.go#L1201: case u.Add(d).Equal(t):
time.go#L1781: return t.Add(-r)
time.go#L1799: return t.Add(-r)
time.go#L1801: return t.Add(d - r)
context
context.go#L695: return WithDeadline(parent, time.Now().Add(timeout))
context.go#L702: return WithDeadlineCause(parent, time.Now().Add(timeout), cause)
crypto/tls
conn.go#L1469: c.SetWriteDeadline(time.Now().Add(time.Second * 5))
handshake_client_tls13.go#L889: session.useBy = uint64(c.config.time().Add(lifetime).Unix())
github.com/robfig/cron/v3
constantdelay.go#L26: return t.Add(schedule.Delay - time.Duration(t.Nanosecond())*time.Nanosecond)
spec.go#L82: t = t.Add(1*time.Second - time.Duration(t.Nanosecond())*time.Nanosecond)
spec.go#L127: t = t.Add(time.Duration(24-t.Hour()) * time.Hour)
spec.go#L129: t = t.Add(time.Duration(-t.Hour()) * time.Hour)
spec.go#L143: t = t.Add(1 * time.Hour)
spec.go#L155: t = t.Add(1 * time.Minute)
spec.go#L167: t = t.Add(1 * time.Second)
go.pact.im/x/clock/fakeclock
fakeclock.go#L62: return Time(t.Add(d))
fakeclock.go#L116: c.now = c.now.Add(d)
fakeclock.go#L195: return c.schedule(m, c.now.Add(d))
fakeclock.go#L243: _ = c.schedule(m, now.Add(next))
go.pact.im/x/flaky
jitter.go#L93: next = next.Add(d)
schedule.go#L79: next := midnight.Add(t.d)
schedule.go#L83: next = next.Add(24 * time.Hour)
schedule.go#L105: return now.Add(t.d)
go.pact.im/x/zapjournal/tests
journalctl.go#L23: deadline := time.Now().Add(journalctlTimeout)
golang.org/x/net/http2
http2.go#L325: conn.SetWriteDeadline(time.Now().Add(timeout))
server.go#L1047: pingAt := lastFrameReadTime.Add(sc.readIdleTimeout)
golang.org/x/net/internal/timeseries
timeseries.go#L188: } else if t.After(ts.pendingTime.Add(-1 * smallBucketDuration)) {
timeseries.go#L237: if !t.Before(level.end.Add(level.size * time.Duration(ts.numBuckets))) {
timeseries.go#L245: level.end = level.end.Add(level.size)
timeseries.go#L340: return ts.Range(now.Add(-delta), now)
timeseries.go#L368: if !start.Before(l.end.Add(-l.size * time.Duration(ts.numBuckets))) {
timeseries.go#L389: return ts.ComputeRange(now.Add(-delta), now, num)
timeseries.go#L400: srcStart := l.end.Add(-srcInterval * time.Duration(ts.numBuckets))
timeseries.go#L408: srcStart = srcStart.Add(time.Duration(advance) * srcInterval)
timeseries.go#L418: dstEnd := dstStart.Add(dstInterval)
timeseries.go#L420: srcEnd := srcStart.Add(srcInterval)
timeseries.go#L452: srcStart = srcStart.Add(srcInterval)
timeseries.go#L454: dstStart = dstStart.Add(dstInterval)
google.golang.org/grpc
clientconn.go#L1274: connectDeadline := time.Now().Add(dialDuration)
server.go#L970: rawConn.SetDeadline(time.Now().Add(s.opts.connectionTimeout))
google.golang.org/grpc/internal/resolver/dns
dns_resolver.go#L220: nextResolutionTime = internal.TimeNowFunc().Add(MinResolutionInterval)
dns_resolver.go#L229: nextResolutionTime = internal.TimeNowFunc().Add(backoff.DefaultExponential.Backoff(backoffIndex))
google.golang.org/grpc/internal/transport
http2_client.go#L992: t.conn.SetWriteDeadline(time.Now().Add(time.Second * 10))
http2_server.go#L946: if t.lastPingAt.Add(defaultPingTimeout).After(now) {
http2_server.go#L951: if t.lastPingAt.Add(t.kep.MinTime).After(now) {
net
dial.go#L252: earliest = now.Add(d.Timeout)
dial.go#L288: return now.Add(timeout), nil
dnsclient_unix.go#L182: ctx, cancel := context.WithDeadline(ctx, time.Now().Add(timeout))
dnsclient_unix.go#L402: if conf.lastChecked.After(now.Add(-5 * time.Second)) {
hosts.go#L61: hosts.expire = now.Add(cacheMaxAge)
hosts.go#L120: hosts.expire = now.Add(cacheMaxAge)
interface.go#L211: if !force && zc.lastFetched.After(now.Add(-60*time.Second)) {
nss.go#L59: if conf.lastChecked.After(now.Add(-5 * time.Second)) {
net/http
client.go#L194: return time.Now().Add(c.Timeout)
h2_bundle.go#L3811: conn.SetWriteDeadline(now.Add(timeout))
h2_bundle.go#L5127: pingAt := lastFrameReadTime.Add(sc.readIdleTimeout)
server.go#L1030: hdrDeadline = t0.Add(d)
server.go#L1033: wholeReqDeadline = t0.Add(d)
server.go#L1038: c.rwc.SetWriteDeadline(time.Now().Add(d))
server.go#L1967: dl := time.Now().Add(tlsTO)
server.go#L2128: c.rwc.SetReadDeadline(time.Now().Add(d))
transport.go#L1170: oldTime = time.Now().Add(-t.IdleConnTimeout)
net/http/pprof
pprof.go#L129: rc.SetWriteDeadline(time.Now().Add(timeout))
testing
testing.go#L2238: deadline = time.Now().Add(*timeout)
testing.go#L2469: deadline := time.Now().Add(*timeout)